package com.hxx.springbootdemo.consumer.controller;

import com.hxx.springbootdemo.consumer.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {
    @Autowired
    private ProductService productService;

    @GetMapping(value = "getConsumer")
    public String getConsumer(){
        String str =  productService.getProduct();
        return str;
    }
}

